import request from '@/utils/request'

// 查询用户服务订单列表
export function listreturn(query) {
  return request({
    url: '/system/employee/queryMoneyType',
    method: 'get',
    params: query
  })
}

// 查询用户服务订单详细
export function getOrder(orderId) {
  return request({
    url: '/system/order/' + orderId,
    method: 'get'
  })
}

// 新增用户服务订单
export function addOrder(data) {
  return request({
    url: '/system/order',
    method: 'post',
    data: data
  })
}


export function updateOrder(data) {
  return request({
    url: '/system/order',
    method: 'put',
    data: data
  })
}

export function treeselect() {
  return request({
    url: '/system/dept/treeselect?deptType=' + 1,
    method: 'get'
  })
}

export function personlist() {
  return request({
    url: '/system/user/getUserList?deptType=' + 2,
    method: 'get'
  })
}

export function plist() {
  return request({
    url: '/system/user/getUserList?deptType=' + 1,
    method: 'get'
  })
}
// 删除用户服务订单
export function delOrder(orderId) {
  return request({
    url: '/system/order/' + orderId,
    method: 'delete'
  })
}

// 导出用户服务订单
export function exportOrder(query) {
  return request({
    url: '/system/order/export',
    method: 'get',
    params: query
  })
}
